home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 040a / sound164.zip / SOUND.TXT < prev    next >
Text File  |  1991-07-30  |  7KB  |  149 lines

  1.  
  2.                            PC DIGITAL AUDIO
  3.              Release:  1.64                Date:  30 July 1991
  4.  
  5. Copyright (C) 1990, 1991 David T. Chappell
  6. All Rights Reserved
  7.  
  8.     The programs included are shareware.  Feel free to make copies and pass
  9.     them out to friends and BBSs as long as no fee is charged, the programs
  10.     are not modified in any way, and this notice is not changed or removed.
  11.  
  12. INTRODUCTION
  13. ============
  14.  
  15.      In recent years, the computer world has been gaining interest in
  16. computer-generated sound.  The Apple Macintosh and Commodore Amiga provide 
  17. built-in sound control so they can play digitized recordings with little 
  18. effort from the programmer.  IBM, however, has not yet included advanced 
  19. sound capabilities in its personal computers.  Although more people are 
  20. buying sound boards from IBM and third parties, until such hardware is 
  21. standardized, speech software will encounter difficulty in gaining 
  22. acceptance.  In this regard, mathematics, engineering, and software come to
  23. the rescue and allow PCs to play good quality sound without extra hardware.
  24.      Over the years, several attempts have been made to play digitized
  25. sound on PCs with the built-in speaker.  Many have appeared in the public
  26. domain, but few are coherent.  Commercial software has had greater success,
  27. but most of these programs produce rough speech.  With the recent rise of
  28. interest in multimedia, some developers have produced good quality sound.
  29. My work rivals that of the best public domain and commercial successes.
  30.  
  31. INCLUDED FILES
  32. ==============
  33.  
  34. SOUND152.EXE    Version 1.52 for DOS
  35.         Fastest; only files smaller than 64K; best for slow computers.
  36. SOUND242.EXE    Version 2.42 for DOS
  37.         Allows files larger than 64K; good for moderate-speed computers.
  38. SOUNDTM.EXE     Version TM 1.52 for DOS
  39.         Uses timer interrupts; allows large files; best sound output.
  40.         Requires 80286 or better processor.  Use on fast computers.
  41. SOUND.EXE       Version 3.43 for DOS
  42.         Menu-driven version; loosely follows IBM SAA-CUA user interface.
  43.         Combines SOUND242 & SOUNDTM & Sound Blaster; detects file type.
  44. SOUND2.EXE      Version 1.11 for OS/2
  45.         OS/2 version; runs in either window or full-screen session;
  46.         any size file is playable.  Equivalent to version 2.42 for DOS.
  47.  
  48.     Sample Name      Signed     Stereo     Volume    Freq
  49.     ------------     ------     ------     ------   -----
  50.     DESTINY.VOC        N          N          0       9009
  51.     YOHO.IFF           Y          N          0      13016
  52.     RHETT.SND          N          N          0      10250
  53.  
  54. USAGE
  55. =====
  56.  
  57. To run each program, type the filename (omitting the extension) at the
  58. command prompt.  SOUND.EXE is menu-driven, but the other programs
  59. can be controlled either via command-line switches OR via prompted input.
  60. If you do not use the command-line parameters, the programs
  61. will prompt the user for input, as descriped below.
  62.  
  63. Usage:  SOUND152 [filename speed [/c] [/s] [/v]]
  64.  
  65.    /c   multiple-channel format (i.e. stereo; default is mono)
  66.    /s   signed data format (default is unsigned)
  67.    /v   normal volume (default is maximum volume)
  68.  
  69. File name:  Enter the entire file name, including extension.  Any
  70. digitized sound sample recorded on any computer should work.
  71.  
  72. Speed factor:  In most versions of the program, speed depends on a FOR loop.
  73. The delay factor for the loop must be entered manually.  A larger number
  74. yields slower play.  Faster samples need smaller numbers.  On an 8 MHz PC,
  75. an 8 kHz sample needs about a 9, while the same sample on a 25 MHz 80386
  76. needs about a 78.  Your system configuration determines the correct factor.
  77.  
  78. Frequency:  The TM version needs to know the sample frequency in hertz to
  79. give the correct speed.
  80.  
  81. Signed:  Enter a "Y" or "N".  Some samples are on a scale from 0 to 255,
  82. others are on a scale of -128 to 127.  Since these programs require the
  83. 0-255 scale, other samples must be shifted for them to sound right.
  84. Samples from Amiga computers use signed bytes, while those from Macintosh,
  85. Atari ST, and IBM PC are in unsigned format.
  86.  
  87. Stereo:  Enter a "Y" or "N".  The PC has only one speaker, so stereo play
  88. is not possible.  To prevent problems with stereo samples, this option will
  89. play a single channel of a stereo sample.
  90.  
  91. Volume:  This controls the output volume.  The input must be an integer.
  92. A positive number multiplies the output, while a negative number divides
  93. the output.  A 0 enables a routine that automatically scales the data for 
  94. maximum volume without distortion.  Most samples sound better when scaled. 
  95.  
  96. SOUND BLASTER
  97. =============
  98.  
  99. SOUND.EXE provides limited support for the Sound Blaster card.  If you have
  100. a Sound Blaster, make sure the environment variable SOUND is set to the
  101. path to your driver.  Your AUTOEXEC.BAT file should contain a line similar 
  102. to the following:  SET SOUND=C:\SB.  See your manual for more details.
  103. It will also work if CT-VOICE.DRV is in the current directory.
  104.  
  105. LIMITATIONS
  106. ===========
  107.  
  108. SOUND152 can not load files greater than 64K in size.  The other versions
  109. do not have such a limitation.  The DOS versions can not load a file larger
  110. than the system's available physical memory (RAM); OS/2 uses virtual memory.
  111.  
  112. All versions except SOUNDTM produce a background pitch.  A background pitch
  113. is present in SOUNDTM but of low volume.  SOUNDTM relies on the system timer
  114. interrupt, so it runs on any system with the same results.  Any other
  115. interrupt-driven software may conflict with SOUNDTM.  Pressing keys, moving
  116. the mouse, etc. will put a buzz in the output.  SOUNDTM will not give proper
  117. results if the DOS 4.0 DOSShell has been run or if it is run in a DOS box
  118. under OS/2 or Windows; however, it runs well under the DOS 5.0 DOSShell.
  119. The same applies to SOUND when Output is set to Better Speaker.
  120.  
  121. Only files with the extention VOC can be played through the Sound Blaster.
  122.  
  123. CONCLUSION
  124. ==========
  125.  
  126.     I am planning several updates in the near future.  I plan to improve 
  127.     the existing programs and write some demos as well.  More enhancements
  128.     are planned for the OS/2 version, possibly including a PM version.
  129.  
  130.     If you use these sound programs and find them interesting, a donation
  131.     in any amount ($5 suggested) will be greatly appreciated.  If you
  132.     send a donation, I shall send you the latest copy of the software
  133.     (specify disk size).  If you request it, I shall also include my 
  134.     technical paper on implementing these routines in your own software.
  135.     Please make checks in U.S. dollars payable to David T. Chappell.  
  136.  
  137.     Richard E. Zobell wrote the file-loading routine used in SOUND242,
  138.     SOUNDTM, and SOUND.  Thanks go to Carl Morrell for help with some
  139.     technical aspects.  Ray Duncan's book _Advanced_OS/2_Programming_
  140.     helped a lot with OS/2 development.
  141.  
  142.     If you have any questions, comments, suggestions, or donations,
  143.     please contact:
  144.  
  145.                    David T. Chappell            Internet address:
  146.                    242 Stonewall Road             david@catt.ncsu.edu
  147.                    Salisbury, NC 28144
  148.                    (704) 633-7535
  149.